/*----------------------------------------------------------------------
  - File name      : isr.c
  - Author         : Quark Team
  - Update date    : 2020-10-30                   
  -	Copyright      : Gevico Electronic studio   
  - Module comments: ISR module.
-----------------------------------------------------------------------*/
/*-----------------------------------------------------------------------
|                               INCLUDES                                |
-----------------------------------------------------------------------*/
#include "main.h"
#include "tmt.h"
/*-----------------------------------------------------------------------
|                                 DATA                                  |
-----------------------------------------------------------------------*/

/*-----------------------------------------------------------------------
|                               FUNCTION                                |
-----------------------------------------------------------------------*/

/*--------------------------------------------------------
| @Description: TIMER0 ISR handler function              |
| @param      : None                                     |
| @return     : None                                     |
--------------------------------------------------------*/

void TIMER0_ISRQ_Handler(void)
{
	/* Task time handler callback */
    TMT_Pro_Time_Callback();
}

/*--------------------------------------------------------
| @Description: UART1 ISR handler function               |
| @param      : None                                     |
| @return     : None                                     |
--------------------------------------------------------*/

void UART1_ISRQ_Handler(void)
{
  UART1_CLEAR_BUSY_FLAG();
  if (UART1_GET_TX_FLAG())
  {
    UART1_CLEAR_TX_FLAG();
  }
  if (UART1_GET_RX_FLAG())
  {
    UART1_CLEAR_RX_FLAG();
  }
}

/* Interrupt service function:            
 *
 * TIMER:
 * void TIMER0_ISRQ_Handler(void)                            
 * void TIMER1_ISRQ_Handler(void)
 * void TIMER2_ISRQ_Handler(void)
 * void TIMER3_ISRQ_Handler(void)
 * void TIMER4_ISRQ_Handler(void)
 *
 * UART:
 * void UART1_ISRQ_Handler(void)
 * void UART2_ISRQ_Handler(void)
 * void UART3_ISRQ_Handler(void)
 * void UART4_ISRQ_Handler(void)
 *
 * EXTI:
 * void EXTI0_ISRQ_Handler(void)                             
 * void EXTI1_ISRQ_Handler(void)                             
 * void EXTI2_ISRQ_Handler(void)                             
 * void EXTI3_ISRQ_Handler(void)  
 *
 * ADC:
 * void ADC_ISRQ_Handler(void)
 *
 * COMP:
 * void COMP_ISRQ_Handler(void)
 *
 * PCA:
 * void PCA_ISRQ_Handler(void)
 *
 * PWM:
 * void PWM_ISRQ_Handler(void)
 * void PWM_ABD_ISRQ_Handler(void)
 *
 */

/*-----------------------------------------------------------------------
|          END OF FLIE        (C) COPYRIGHT Gevico Electronics          | 
-----------------------------------------------------------------------*/
